<?php
namespace App\Http\Middleware; use Closure; class CORS { public function handle($sp26e527, Closure $sp16062c) { if (config('app.debug')) { $spfeddd9 = array('Access-Control-Allow-Origin' => $sp26e527->header('Origin'), 'Access-Control-Allow-Methods' => 'POST, GET, OPTIONS, PUT, DELETE', 'Access-Control-Allow-Headers' => 'Content-Type, Accept, Authorization, Cookie, X-Requested-With, X-XSRF-TOKEN', 'Access-Control-Allow-Credentials' => 'true'); if ($sp26e527->isMethod('OPTIONS')) { return response()->make('', 200, $spfeddd9); } $sp7c95a4 = $sp16062c($sp26e527); foreach ($spfeddd9 as $sp696922 => $sp1e3ccc) { $sp7c95a4->headers->set($sp696922, $sp1e3ccc); } return $sp7c95a4; } return $sp16062c($sp26e527); } }